package org.jeecg.modules.interview.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 *
 * @author liujiamiao
 * @since 2020-11-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Interview对象", description="")
@TableName(value = "sci_interview")
public class Interview implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

//    @Dict(dicCode = "interview_post")
    @NotNull
    @ApiModelProperty(value = "面试岗位")
    private Integer interviewPostId;

    @NotNull
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "面试时间")
    private Date interviewDate;

//    @TableField(strategy = FieldStrategy.IGNORED)
    @ApiModelProperty(value = "简历链接")
    private String resume;

    @ApiModelProperty(value = "面试评价")
    private String interviewComment;

    @ApiModelProperty(value = "面试备注")
    private String remarks;

    @ApiModelProperty(value = "基本信息Id")
    private int basicId;

}
